<?php

include 'ShopProduct.php';

/**
 * Description of CdProduct
 *
 * @author chalkers
 */
class CdProduct extends ShopProduct {
    private $playlength = 0;

    public function __construct($title, $firstName, $mainName, $price, $playLength) {
        parent::__construct($title, $firstName, $mainName, $price);
        $this->playlength = $playLength;
    }

    public function getPlayLength() {
        return $this->playlength;
    }

    public function getSummaryLine() {
        $base = parent::getSummaryLine();
        $base .= ": playing time - {$this->playlength}";
        return $base;
    }

}

?>
